package com.controlstudent.datos;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Programador
 */
public class ConnectionManager {
    public static Connection getConnection(){
        Connection con = null;
        try {
            Class.forName("net.sourceforge.jtds.jdbc.Driver");
            String cadenaConexion = "jdbc:jtds:sqlserver://192.168.1.33:1433/BDStudentControl";
            con = DriverManager.getConnection(
                    cadenaConexion, 
                    "sa", 
                    "123456");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return con;
    }
}